﻿<%@ Page Language="C#" AutoEventWireup="True" EnableEventValidation="false" CodeBehind="ggEdit.aspx.cs"
    Inherits="GPCSC.Web.sjsbyes.ggEdit" %>

<%@ Register Assembly="NickLee.Web.UI" Namespace="NickLee.Web.UI" TagPrefix="NickLee" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>淮安市领导干部下基层活动网站</title>
    <meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <link type="text/css" rel="Stylesheet" href="../Css/tableCss.css" />
    <link type="text/css" rel="Stylesheet" href="../Css/combobox.css" />
    <link href="../Css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../scripts/jquery-1.6.2.min.js"></script>
    <script>
        function selectss() {
            var sd = $("#sdf").val();

            document.getElementById("MtxtD_ggvalue").value = sd;
        }
        function TreeView1_onNodeSelect(sender, eventArgs) {
            ComboBox1.set_text(eventArgs.get_node().get_text());
            document.getElementById('MtxtD_lgdw').value = eventArgs.get_node().get_text();
            document.getElementById('MtxtD_lgdwid').value = eventArgs.get_node().get_id();
            ComboBox1.collapse();
            LCallBack.Callback();
        }
        function tc(event) {
            // alert($(event).find('option:selected').text());
            document.getElementById("MtxtD_lgname").value = $(event).find('option:selected').text();
            document.getElementById("MtxtD_lgid").value = $(event).find('option:selected').val();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="29" background="../images/1.gif">
                    <table width="300" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="300" class="tittle">
                                当前位置：挂钩录入界面
                            </td>
                        </tr>
                    </table>
                </td>
                <td align="right" background="../images/1.gif" style="padding-right: 20px;">
                    <a href="gglist.aspx" class="returna">返回 </a>
                </td>
            </tr>
        </table>
        <%--    <div style="margin-top:20px; float:none;">
    <div style="text-align:left; width:50%;  height:50px; vertical-align:bottom; ">
    <img src="../images/right2.gif" />
    <strong style="color:#0F5A8C">挂钩操作</strong>
    </div>
    </div>--%>
        <div style="width: 650px; margin-right: 50px; margin-left: 50px;">
            <table class="table">
                <tr>
                    <td class="td" style="background-color: #F1F6FA; width: 200px;">
                        单位名称
                    </td>
                    <td>
                        <NickLee:ComboBox ID="ComboBox1" runat="server" CssClass="comboBox" AutoFilter="False"
                            AutoHighlight="False" AutoComplete="False" AutoPostBack="False" HoverCssClass="comboBoxHover"
                            FocusedCssClass="comboBoxHover" TextBoxCssClass="comboTextBox" DropDownCssClass="comboDropDown"
                            ItemCssClass="comboItem" ItemHoverCssClass="comboItemHover" SelectedItemCssClass="comboItemHover"
                            DropHoverImageUrl="../images/drop_hover.gif" DropImageUrl="../images/drop.gif"
                            Width="300" DropDownHeight="297" DropDownWidth="300" Enabled="True" TextBoxEnabled="True">
                            <DropDownContent>
                                <NickLee:TreeView ID="TreeView1" Height="297" Width="260" DragAndDropEnabled="false"
                                    NodeEditingEnabled="false" KeyboardEnabled="true" CssClass="TreeView" NodeCssClass="TreeNode"
                                    SelectedNodeCssClass="SelectedTreeNode" HoverNodeCssClass="HoverTreeNode" NodeEditCssClass="NodeEdit"
                                    LineImageWidth="19" LineImageHeight="20" DefaultImageWidth="16" DefaultImageHeight="16"
                                    ItemSpacing="0" NodeLabelPadding="3" ImagesBaseUrl="../images/" LineImagesFolderUrl="../images/"
                                    ParentNodeImageUrl="folders.gif" LeafNodeImageUrl="folder.gif" ShowLines="true"
                                    EnableViewState="true" runat="server">
                                    <ClientEvents>
                                        <NodeSelect EventHandler="TreeView1_onNodeSelect" />
                                    </ClientEvents>
                                </NickLee:TreeView>
                            </DropDownContent>
                        </NickLee:ComboBox>
                        <input type="text" id="MtxtD_lgdw" runat="server" style="display: none" />
                        <input type="text" id="MtxtD_lgdwid" runat="server" style="display: none" value="00000000-0000-0000-0000-000000000000" />
                    </td>
                </tr>
                <tr>
                    <td class="td" style="background-color: #F1F6FA; width: 200px;">
                        领导人名称：
                    </td>
                    <td class="td" style="text-align: left">
                        <NickLee:CallBack runat="server" ID="LCallBack" OnCallback="LCallBack_Callback" PostState="True"
                            Width="100%" Height="100%" LoadingPanelFadeDuration="800" LoadingPanelFadeMaximumOpacity="80">
                            <Content>
                                <asp:Panel ID="LPanel" runat="server">
                                    <asp:DropDownList ID="DropDownList2" runat="server" onchange="tc(this)" DataValueField="CL_USER_SOID"
                                        DataTextField="REALNAME">
                                    </asp:DropDownList>
                                </asp:Panel>
                            </Content>
                            <%--  <ClientEvents>
                <CallbackComplete EventHandler="LCallBack_onCallbackComplete" />
                <CallbackError EventHandler="LCallBack_onCallbackError" />
            </ClientEvents>--%>
                            <LoadingPanelClientTemplate>
                                <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0" border="0"
                                    bgcolor="#e0e0e0">
                                    <tr style="width: 100%; height: 100%;">
                                        <td style="width: 100%; height: 100%; vertical-align: middle; text-align: center;">
                                            <table cellspacing="0" cellpadding="0" border="0">
                                                <tr>
                                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                                        数据载入中...&nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                                        <img alt="" src="../images/GreenBar.gif" border="0" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </LoadingPanelClientTemplate>
                        </NickLee:CallBack>
                        <input type="text" id="MtxtD_lgname" runat="server" style="display: none" />
                        <input type="text" id="MtxtD_lgid" runat="server" style="display: none" />
                        <input type="text" id="command" runat="server" style="display: none" />
                    </td>
                </tr>
                <tr>
                    <td class="td" style="background-color: #F1F6FA; width: 200px;">
                        挂钩类型：
                    </td>
                    <td class="td" style="text-align: left">
                        <select id="sdf" runat="server" onchange="selectss()">
                            <option value="" selected="selected">--请选择-- </option>
                            <option value="1">乡镇 </option>
                            <option value="2">企业 </option>
                            <option value="3">社区 </option>
                        </select>
                        <asp:TextBox ID="MtxtD_ggvalue" runat="server" Style="display: none"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td" style="background-color: #F1F6FA; width: 200px;">
                        挂钩点名称：
                    </td>
                    <td class="td" style="text-align: left">
                        <input type="text" id="MtxtD_ggname" runat="server" style="width: 300px;" />
                    </td>
                </tr>
                <tr>
                    <td class="td" style="background-color: #F1F6FA; width: 200px;">
                        联系人名称：
                    </td>
                    <td class="td" style="text-align: left">
                        <input type="text" id="MtxtD_lxname" runat="server" style="width: 300px;" />
                    </td>
                </tr>
                <tr>
                    <td class="td" style="background-color: #F1F6FA; width: 200px;">
                        联系电话：
                    </td>
                    <td class="td" style="text-align: left">
                        <input type="text" id="MtxtD_lxfs" runat="server" style="width: 300px;" />
                    </td>
                </tr>
                <tr runat="server" id="buttontr">
                    <td colspan="2" align="center">
                        <asp:Button ID="Button1" runat="server" Text="保存" CssClass="buttonCss" OnClick="Button1_Click" />
                        <input type="button" value="重置" class="buttonCss" onclick="window.location.reload();"
                            style="margin-left: 10px;" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
